<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        let p1 = new Promise((resolve, reject)=>{
            console.log(111)
            resolve('521')
        })

        console.log(2222)

        p1.then(value => {
            console.log(value)
        })

    </script>
</body>
</html>